/*
 * Copyright 2012 NJUT  qixiaobo. All rights reserved.
 */
package com.fujitsu.nanjing.tieba.webService;

import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
import org.junit.Test;

import com.fujitsu.nanjing.tieba.webService.inter.Hello;

/**
 * WebTest.java
 * 
 * @author Qixiaobo-win8
 */
public class WebTest {
	@Test
	public void go() {
		JaxWsProxyFactoryBean svr = new JaxWsProxyFactoryBean();
		svr.setServiceClass(Hello.class);
		svr.setAddress("http://127.0.0.1:8080/services/hello");
		Hello hello = (Hello) svr.create();
		System.out.println(hello.sayHi("123"));

	}
}
